package com.yi.mall.api;

import com.yi.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(contextId = "Cart",value = "mall-cart-service")
public interface CartFeign {
    @DeleteMapping("/cart/rmall")
    public Result rmall(@RequestParam("ids") List<String> ids);
    @DeleteMapping("/cart/{id}")
    public Result delete(@PathVariable("id") String id);
    @GetMapping("/cart/findByid")
    public Result findByid(@RequestParam("id") String id);
}
